package com.xiaoxi.open.design.structural.adapterpattern.recharger.adapter;

import com.xiaoxi.open.design.structural.adapterpattern.recharger.adaptee.TypeCAdaptee;
import com.xiaoxi.open.design.structural.adapterpattern.recharger.connector.LightningConnector;
import org.springframework.stereotype.Service;

/**
 * @Author xiaoxi
 * @ProjectName creation_pattern
 * @PackageName com.xiaoxi.open.design.structural.adapterpattern.recharger.adapter
 * @ClassName LightingAdapter
 * @Description TODO
 * @Date 2024/5/24 17:21
 * @Version 1.0
 */
@Service
public class LightningAdapter extends TypeCAdaptee implements LightningConnector {

    @Override
    public void lightningRecharger() {
        System.out.println("---------------lightning 转 type C 接口~适配器开始工作-------------------");
        super.specificRecharger();
    }

}
